<?php
/**
 * 查重
 * @Author: wjf
 * @Date: 2022-12-01 15:51:52
 */

namespace app\crm\model\client;

use think\Model;

class Duplicat extends Model
{
    /**
     * 设置当前模型对应的完整数据表名称 
     * @Author: wjf
     * @Date: 2022-11-26 15:03:14
    */ 
    protected $table = 'crm_client';

    public function getFollowtimeAttr($value)
    {
        return date('Y-m-d H:i:s',$value);
    } 

    /**
     * 状态
     * @Author: wjf
     * @Date: 2022-11-30 11:51:29
     */    
    public function getStatusAttr($value,$data)
    {
        $stutas = [0 => '未成交', 1 => '已成交', 2 => '已转客户', 3 => '无效线索'];
        return $stutas[$data['status']];
    }

}